﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    注册
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        注册一个账号</h2>
        <%= Html.ValidationSummary("")%>
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset>
            <legend>账号注册</legend>
            <p>
                <label for="Name">
                    姓名:</label>
                <%= Html.TextBox("Name") %>
                <%= Html.ValidationMessage("UserName")%>
            </p>
            <p>
                <label for="Password">
                    密码:</label>
                <%= Html.Password("Password") %>
                <%= Html.ValidationMessage("Password")%>
            </p>
            <p>
                <input type="submit" value="注册" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>